package com.zyg.cart.client;

import com.zyg.cart.entity.ItemEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("zyg-manager")
public interface ManagerClient {
    //根据itemId查找商品信息
    @GetMapping("/manager/item/findById/{id}")
    ItemEntity findById(@PathVariable("id") String id);
}
